# Contributor: Jonny Gerold <jonny@fsk141.com>

pkgname=rtorrent-svn
_pkgname=rtorrent
pkgver=1096
pkgrel=1
pkgdesc="Ncurses BitTorrent client based on libTorrent"
arch=('i686' 'x86_64')
url="http://libtorrent.rakshasa.no"
license=('GPL')
depends=('libtorrent-svn>=1085' 'curl' 'xmlrpc-c-svn')
makedepends=('subversion')
conflicts=('rtorrent')
provides=('rtorrent')
md5sums=()
source=()
install=rtorrent.install

_svnmod="rtorrent"
_svntrunk="svn://rakshasa.no/libtorrent/trunk/rtorrent"

build() {
  cd $startdir/src
  msg "Connecting to $_svnmod SVN server...."
  svn co $_svntrunk $_svnmod -r $pkgver 

  msg "SVN checkout done or server timeout"
  cd $_pkgname
  msg "Starting make..."
  ./autogen.sh
  ./configure --prefix=/usr --disable-debug --with-xmlrpc-c
  make || return 1

  mkdir -p $startdir/pkg/usr/bin
  make DESTDIR=${startdir}/pkg install
  rm -rf $startdir/pkg/usr/share
}
